SureCart\Models\Checkout A

Total Complexity 68
Dependencies 8
Dependents 8
Total lines 506
Lines of code 249
Logical lines of code 113
Comment lines 169
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
declineUpsell()
S
50 6 29
offerBump()
S
51 6 26
offerUpsell()
S
51 6 26
getHumanDiscountAttribute()
S
61 5 12
cancel()
S
52 4 25
manuallyPay()
S
52 4 25
getHumanDiscountWithDurationAttribute()
S
57 4 16
getLineItemsCountAttribute()
S
62 3 12
getConvertedTotalAmountAttribute()
S
71 3 6
getSubtotalDisplayAmountAttribute()
S
77 2 3
getBillingAddressDisplayAttribute()
S
71 2 6
getPaidAtDateAttribute()
S
78 2 3
setWriteAttributes()
S
70 2 6
getBumpDisplayAmountAttribute()
S
77 2 3
getDiscountDisplayAmountAttribute()
S
77 2 3
getFullDisplayAmountAttribute()
S
77 2 3
getHasRecurringAttribute()
S
66 2 9
getShippingAddressRequiredAttribute()
S
78 1 3
__construct()
S
76 1 4
setLineItemsAttribute()
S
79 1 3
getIPAddress()
S
78 1 3
update()
S
77 1 4
setRecommendedBumpsAttribute()
S
79 1 3
setCurrentUpsellAttribute()
S
79 1 3
setUpsellFunnelAttribute()
S
79 1 3
getIsInstallmentAttribute()
S
80 1 3
getTotalDisplayAmountAttribute()
S
79 1 3
create()
S
77 1 4